home *** CD-ROM | disk | FTP | other *** search
/ CICA 1994 April / CICA Shareware for Windows CD-ROM (Walnut Creek CD-ROM)(April 1994).ISO / win3 / misc / help30.exe / HLPDEF.SMM < prev    next >
INI File  |  1992-06-18  |  6KB  |  724 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     HP LaserJet III
  13. [lang]
  14.     1
  15. [desc]
  16.     Creates a definition button using the text you select.
  17.     
  18.     
  19.     
  20.     
  21.     708917915
  22.     22
  23.     695084368
  24.     44
  25.     1
  26.     0
  27.     0
  28.     0
  29.     0
  30.     
  31.     
  32.     
  33.     
  34.     
  35.     
  36.     0
  37. [fopts]
  38.     0
  39.     1
  40.     0
  41.     0
  42. [lnopts]
  43.     2
  44.     Body Text
  45.     1
  46. [docopts]
  47.     5
  48.     2
  49. [tag]
  50.     Body Text
  51.     2
  52.     [fnt]
  53.         TimesNewRomanPS
  54.         240
  55.         0
  56.         49152
  57.     [algn]
  58.         1
  59.         1
  60.         0
  61.         0
  62.         0
  63.     [spc]
  64.         33
  65.         273
  66.         1
  67.         0
  68.         0
  69.         1
  70.         100
  71.     [brk]
  72.         4
  73.     [line]
  74.         8
  75.         0
  76.         1
  77.         0
  78.         1
  79.         1
  80.         1
  81.         10
  82.         10
  83.         1
  84.     [spec]
  85.         0
  86.         0
  87.         
  88.         0
  89.         1
  90.         1
  91.         0
  92.         0
  93.         0
  94.         0
  95.     [nfmt]
  96.         280
  97.         1
  98.         2
  99.         .
  100.         ,
  101.         $
  102.     Body Text
  103.     0
  104.     0
  105. [tag]
  106.     Body Single
  107.     3
  108.     [fnt]
  109.         TimesNewRomanPS
  110.         240
  111.         0
  112.         49152
  113.     [algn]
  114.         1
  115.         1
  116.         0
  117.         0
  118.         0
  119.     [spc]
  120.         33
  121.         273
  122.         1
  123.         0
  124.         0
  125.         1
  126.         100
  127.     [brk]
  128.         4
  129.     [line]
  130.         8
  131.         0
  132.         1
  133.         0
  134.         1
  135.         1
  136.         1
  137.         10
  138.         10
  139.         1
  140.     [spec]
  141.         0
  142.         0
  143.         
  144.         0
  145.         1
  146.         1
  147.         0
  148.         0
  149.         0
  150.         0
  151.     [nfmt]
  152.         280
  153.         1
  154.         2
  155.         .
  156.         ,
  157.         $
  158.     Body Single
  159.     0
  160.     0
  161. [tag]
  162.     Bullet
  163.     4
  164.     [fnt]
  165.         TimesNewRomanPS
  166.         240
  167.         0
  168.         49152
  169.     [algn]
  170.         1
  171.         1
  172.         0
  173.         288
  174.         288
  175.     [spc]
  176.         33
  177.         273
  178.         1
  179.         0
  180.         0
  181.         1
  182.         100
  183.     [brk]
  184.         4
  185.     [line]
  186.         8
  187.         0
  188.         1
  189.         0
  190.         1
  191.         1
  192.         1
  193.         10
  194.         10
  195.         1
  196.     [spec]
  197.         0
  198.         0
  199.         <*0>
  200.         360
  201.         1
  202.         1
  203.         0
  204.         0
  205.         0
  206.         0
  207.     [nfmt]
  208.         272
  209.         1
  210.         2
  211.         .
  212.         ,
  213.         $
  214.     Bullet
  215.     0
  216.     0
  217. [tag]
  218.     Bullet 1
  219.     5
  220.     [fnt]
  221.         TimesNewRomanPS
  222.         240
  223.         0
  224.         49152
  225.     [algn]
  226.         1
  227.         1
  228.         288
  229.         288
  230.         288
  231.     [spc]
  232.         33
  233.         273
  234.         1
  235.         0
  236.         0
  237.         1
  238.         100
  239.     [brk]
  240.         4
  241.     [line]
  242.         8
  243.         0
  244.         1
  245.         0
  246.         1
  247.         1
  248.         1
  249.         10
  250.         10
  251.         1
  252.     [spec]
  253.         0
  254.         0
  255.         <*5>
  256.         0
  257.         1
  258.         1
  259.         0
  260.         0
  261.         0
  262.         0
  263.     [nfmt]
  264.         280
  265.         1
  266.         2
  267.         .
  268.         ,
  269.         $
  270.     Bullet 1
  271.     0
  272.     0
  273. [tag]
  274.     Number List
  275.     6
  276.     [fnt]
  277.         TimesNewRomanPS
  278.         240
  279.         0
  280.         49152
  281.     [algn]
  282.         1
  283.         1
  284.         360
  285.         360
  286.         360
  287.     [spc]
  288.         33
  289.         273
  290.         1
  291.         0
  292.         0
  293.         1
  294.         100
  295.     [brk]
  296.         4
  297.     [line]
  298.         8
  299.         0
  300.         1
  301.         0
  302.         1
  303.         1
  304.         1
  305.         10
  306.         10
  307.         1
  308.     [spec]
  309.         0
  310.         0
  311.         <*:>.
  312.         360
  313.         1
  314.         1
  315.         0
  316.         0
  317.         0
  318.         0
  319.     [nfmt]
  320.         272
  321.         1
  322.         2
  323.         .
  324.         ,
  325.         $
  326.     Number List
  327.     0
  328.     0
  329. [tag]
  330.     Subhead
  331.     7
  332.     [fnt]
  333.         TimesNewRomanPS
  334.         240
  335.         0
  336.         49155
  337.     [algn]
  338.         1
  339.         1
  340.         0
  341.         0
  342.         0
  343.     [spc]
  344.         33
  345.         273
  346.         1
  347.         72
  348.         72
  349.         1
  350.         100
  351.     [brk]
  352.         4
  353.     [line]
  354.         8
  355.         0
  356.         1
  357.         0
  358.         1
  359.         1
  360.         1
  361.         10
  362.         10
  363.         1
  364.     [spec]
  365.         0
  366.         2
  367.         
  368.         0
  369.         1
  370.         1
  371.         0
  372.         0
  373.         0
  374.         0
  375.     [nfmt]
  376.         272
  377.         1
  378.         2
  379.         .
  380.         ,
  381.         $
  382.     Subhead
  383.     0
  384.     0
  385. [tag]
  386.     Title
  387.     8
  388.     [fnt]
  389.         Arial MT
  390.         360
  391.         0
  392.         16385
  393.     [algn]
  394.         4
  395.         1
  396.         0
  397.         0
  398.         0
  399.     [spc]
  400.         33
  401.         446
  402.         1
  403.         144
  404.         72
  405.         1
  406.         100
  407.     [brk]
  408.         16
  409.     [line]
  410.         8
  411.         0
  412.         1
  413.         0
  414.         1
  415.         1
  416.         1
  417.         10
  418.         10
  419.         1
  420.     [spec]
  421.         0
  422.         1
  423.         
  424.         0
  425.         1
  426.         1
  427.         0
  428.         0
  429.         0
  430.         0
  431.     [nfmt]
  432.         272
  433.         1
  434.         2
  435.         .
  436.         ,
  437.         $
  438.     Title
  439.     0
  440.     0
  441. [lay]
  442.     Standard
  443.     513
  444.     [rght]
  445.         15840
  446.         12240
  447.         1
  448.         1440
  449.         1440
  450.         1
  451.         1440
  452.         1440
  453.         0
  454.         1
  455.         0
  456.         1
  457.         0
  458.         2
  459.         1
  460.         1440
  461.         10800
  462.         12
  463.         1
  464.         720
  465.         1
  466.         1440
  467.         1
  468.         2160
  469.         1
  470.         2880
  471.         1
  472.         3600
  473.         1
  474.         4320
  475.         1
  476.         5040
  477.         1
  478.         5760
  479.         1
  480.         6480
  481.         1
  482.         7200
  483.         1
  484.         7920
  485.         1
  486.         8640
  487.     [hrght]
  488.     [lyfrm]
  489.         1
  490.         11200
  491.         0
  492.         0
  493.         12240
  494.         1440
  495.         0
  496.         1
  497.         3
  498.         1 0 0 0 0 0 0
  499.         0
  500.         0
  501.         1
  502.     [frmlay]
  503.         1440
  504.         12240
  505.         1
  506.         1440
  507.         72
  508.         1
  509.         792
  510.         1440
  511.         0
  512.         1
  513.         0
  514.         1
  515.         1
  516.         0
  517.         1
  518.         1440
  519.         10800
  520.         1
  521.         3
  522.         9360
  523.     [txt]
  524. >
  525.     [frght]
  526.     [lyfrm]
  527.         1
  528.         13248
  529.         0
  530.         14400
  531.         12240
  532.         15840
  533.         0
  534.         1
  535.         3
  536.         1 0 0 0 0 0 0
  537.         0
  538.         0
  539.         2
  540.     [frmlay]
  541.         15840
  542.         12240
  543.         1
  544.         1440
  545.         792
  546.         1
  547.         14472
  548.         1440
  549.         0
  550.         1
  551.         0
  552.         1
  553.         1
  554.         0
  555.         1
  556.         1440
  557.         10800
  558.         2
  559.         2
  560.         4680
  561.         3
  562.         9360
  563.     [txt]
  564. >
  565. [elay]
  566. [l1]
  567.     0
  568. [pg]
  569.     1
  570.     38 0 12 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0
  571. [edoc]
  572. <:#278,9360>' This macro creates a definition button using the text you select.
  573.  
  574. <:#278,9360>' It copies the selected text and pastes it immediately after the original text.
  575.  
  576. <:#278,9360>' It then capitalizes the definition button text, converts any spaces to underlines, protects the text,
  577.  
  578. <:#278,9360>' underlines the original text, and places the insertion point after the button text.
  579.  
  580. <:#278,9360>' NOTE: This macro assumes that the text you want to use is selected, and that the text matches
  581.  
  582. <:#278,9360>' the text in a Context footnote for a help topic. DO NOT double-click on a single word to select
  583.  
  584. <:#278,9360>' it because this selects both the word and the space after the word.
  585.  
  586. <:#278,9360>
  587.  
  588. <:#278,9360>function def()
  589.  
  590. <:#278,9360>declare stripit(name)
  591.  
  592. <:#278,9360>name = curshade$()
  593.  
  594. <:#278,9360>if name = ""
  595.  
  596.     message("Select the text for the definition cross-reference and run this macro again.")
  597.  
  598. <:#278,9360>    exit function
  599.  
  600. <:#278,9360>endif
  601.  
  602. <:#278,9360>underline()
  603.  
  604. <:#278,9360>type("<[>esc]")
  605.  
  606. <:#278,9360>protectedtext()
  607.  
  608. <:#278,9360>type(ucase$(stripit(name)))
  609.  
  610. <:#278,9360>specialeffects(256, "")
  611.  
  612. <:#278,9360>type("<[>esc]")
  613.  
  614. <:#278,9360>NormalText()
  615.  
  616. <:#278,9360>end function
  617.  
  618. <:#278,9360>
  619.  
  620. <:#278,9360>function stripit(name)
  621.  
  622. <:#278,9360>spos = 1
  623.  
  624. <:#278,9360>newname = ""
  625.  
  626. <:#278,9360>while (1)
  627.  
  628. <:#278,9360>    txt = strfield$(name, spos, " ")
  629.  
  630. <:#278,9360>    if txt = "" or txt = -1
  631.  
  632. <:#278,9360>        break
  633.  
  634. <:#278,9360>    endif
  635.  
  636. <:#278,9360>    newname = strcat$(newname, "_", txt)
  637.  
  638. <:#278,9360>    spos = spos + 1
  639.  
  640. <:#278,9360>wend
  641.  
  642. <:#278,9360>newname = right$(newname, (len(newname) - 1))
  643.  
  644. <:#278,9360>return newname
  645.  
  646. <:#278,9360>end function
  647.  
  648. >
  649.  
  650. [Embedded]
  651. 00005513
  652. >
  653. [macsum] 2
  654. def 0 0 2 8
  655. stripit 273 1 4 24
  656. [macse]
  657. 14 def
  658. 0 24
  659. 13
  660. 8 1
  661. 6 1
  662. 7 ""
  663. 18 0
  664. 11 00000149
  665. 0 3 "Select the text for the definition cross-reference and run this macro again."
  666. 6 0
  667. 15
  668. 9
  669. 2 256 1
  670. 0 6 "[27]"
  671. 2 188 1
  672. 16 stripit "{1}"
  673. 13
  674. 0 18 [X]
  675. 13
  676. 0 6 [X]
  677. 2 258 1 256 ""
  678. 0 6 "[27]"
  679. 2 253 1
  680. 6 0
  681. 15
  682. 9
  683. 14 stripit
  684. 5 1
  685. 8 2
  686. 7 ""
  687. 8 3
  688. 5 1
  689. 11 00000211
  690. 0 20 "{0}" "{2}" " "
  691. 13
  692. 8 4
  693. 6 4
  694. 7 ""
  695. 18 0
  696. 6 4
  697. 5 -1
  698. 18 0
  699. 1 2
  700. 11 00000147
  701. 10 00000211
  702. 0 16 "{3}" "_" "{4}"
  703. 13
  704. 8 3
  705. 6 2
  706. 5 1
  707. 3 0
  708. 8 2
  709. 10 00000033
  710. 0 14 "{3}"
  711. 13
  712. 5 1
  713. 3 1
  714. 0 807 "{3}" [X]
  715. 13
  716. 8 3
  717. 6 3
  718. 15
  719. 9
  720. 6 1
  721. 15
  722. 9
  723. 00005538
  724.